package com.serookie.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.serookie.entity.Images;
import com.serookie.entity.OrderDetails;
import com.serookie.mapper.ImagesMapper;
import com.serookie.mapper.OrderDetailsMapper;
import com.serookie.service.ImageService;
import com.serookie.service.OrderDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author kevintam
 * @version 1.0
 * @date 2021/6/5 17:09
 */
@Service
public class OrderDetailsServiceImpl  extends ServiceImpl<OrderDetailsMapper, OrderDetails> implements OrderDetailsService{

    @Autowired
    private OrderDetailsMapper orderDetailsMapper;

    @Override
    public Boolean addOrderDetails(OrderDetails orderDetails) {
        return orderDetailsMapper.insert(orderDetails)>0;
    }
}
